package com.tvserials.service.impl;

import com.tvserials.notification.dto.Episode;
import com.tvserials.notification.exceptions.NetworkConnectionException;
import com.tvserials.notification.exceptions.PageParseException;
import com.tvserials.notification.vo.TvEpisodeFilterVO;
import com.tvserials.repository.EpisodeRepository;
import com.tvserials.service.EpisodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class EpisodeServiceImpl implements EpisodeService {

    @Autowired
    private EpisodeRepository episodeRepository;

    @Override
    public List<Episode> getEpisodes(TvEpisodeFilterVO filterVO) throws NetworkConnectionException, PageParseException {
        return null;
    }

    @Override
    public Date getLastSyncDate() {
        return episodeRepository.getLastSyncDate();
    }
}
